package com.ynu.appuser.domain.physical;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

public class PhysicalDataEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    private Double avgBloodOxygen;
    private Double avgDbp;
    private Double avgSbp;
    private Double avgHeartrate;
    private Double avgDeepSleep;
    private Double avgLightSleep;
    private Double avgStep;
    private Date startTime;

    /**
     * 最近一次评分
     */
    private Float lastScore;

    /**
     * 最近一次评分时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date lastScoreTime;

    public Float getLastScore() {
        return lastScore;
    }

    public void setLastScore(Float lastScore) {
        this.lastScore = lastScore;
    }

    public Date getLastScoreTime() {
        return lastScoreTime;
    }

    public void setLastScoreTime(Date lastScoreTime) {
        this.lastScoreTime = lastScoreTime;
    }

    public Double getAvgBloodOxygen() {
        return avgBloodOxygen;
    }

    public void setAvgBloodOxygen(Double avgBloodOxygen) {
        this.avgBloodOxygen = avgBloodOxygen;
    }

    public Double getAvgDbp() {
        return avgDbp;
    }

    public void setAvgDbp(Double avgDbp) {
        this.avgDbp = avgDbp;
    }

    public Double getAvgSbp() {
        return avgSbp;
    }

    public void setAvgSbp(Double avgSbp) {
        this.avgSbp = avgSbp;
    }

    public Double getAvgHeartrate() {
        return avgHeartrate;
    }

    public void setAvgHeartrate(Double avgHeartrate) {
        this.avgHeartrate = avgHeartrate;
    }

    public Double getAvgDeepSleep() {
        return avgDeepSleep;
    }

    public void setAvgDeepSleep(Double avgDeepSleep) {
        this.avgDeepSleep = avgDeepSleep;
    }

    public Double getAvgLightSleep() {
        return avgLightSleep;
    }

    public void setAvgLightSleep(Double avgLightSleep) {
        this.avgLightSleep = avgLightSleep;
    }

    public Double getAvgStep() {
        return avgStep;
    }

    public void setAvgStep(Double avgStep) {
        this.avgStep = avgStep;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public PhysicalDataEntity() {
    }

    public PhysicalDataEntity(Double avgBloodOxygen, Double avgDbp, Double avgSbp, Double avgHeartrate, Double avgDeepSleep, Double avgLightSleep, Double avgStep, Date startTime, Float lastScore, Date lastScoreTime) {
        this.avgBloodOxygen = avgBloodOxygen;
        this.avgDbp = avgDbp;
        this.avgSbp = avgSbp;
        this.avgHeartrate = avgHeartrate;
        this.avgDeepSleep = avgDeepSleep;
        this.avgLightSleep = avgLightSleep;
        this.avgStep = avgStep;
        this.startTime = startTime;
        this.lastScore = lastScore;
        this.lastScoreTime = lastScoreTime;
    }

    @Override
    public String toString() {
        return "PhysicalDataEntity{" +
                "avgBloodOxygen=" + avgBloodOxygen +
                ", avgDbp=" + avgDbp +
                ", avgSbp=" + avgSbp +
                ", avgHeartrate=" + avgHeartrate +
                ", avgDeepSleep=" + avgDeepSleep +
                ", avgLightSleep=" + avgLightSleep +
                ", avgStep=" + avgStep +
                ", startTime=" + startTime +
                ", lastScore=" + lastScore +
                ", lastScoreTime=" + lastScoreTime +
                '}';
    }
}
